package org.fly.service;

import org.fly.bean.Cart;
import org.fly.bean.Page;
import org.fly.bean.query.CartQuery;
import org.fly.bean.common.BusinessException;

import java.util.List;

/**
* Created by autoCode on 2018-04-08 15:31:55.
*/
public interface CartService {

    List<Cart> list(CartQuery query);

    long count(CartQuery query);

    Cart findById(String id);

    void save(Cart bean)  throws BusinessException;

    void delete(String id);

    Page  queryPage(CartQuery query);

    Page  queryGroupPage(CartQuery query);

}
